package com.hotel.reservation.dao;

import com.hotel.reservation.po.RoomPo;
import org.apache.ibatis.annotations.Mapper;
import com.hotel.reservation.po.ReservePo;

import java.util.List;
import java.util.Map;

/**
 * @version 0.1
 * @Author: oliver chen
 * @Description:
 * @Date:Create：in 2021/7/25 13:35
 * @Modified By：
 */
@Mapper
public interface ReserveDao {
    ReservePo selectById(String id);//按订单id查询
    List<ReservePo> selectAll();//查询所有订单
    List<ReservePo> selectAllReserveByPage(Map<String,Object> map);//分页查询
    int insertInfo(ReservePo info);//插入一条订单信息
    List<ReservePo> selectByRoomId(String roomId);//按房间号查询
    Integer deleteByRoomId(int reserveId);//按订单号删除
    
}
